package com.sgcc.electricjournal.dao;

import com.sgcc.electricjournal.entity.QueryPageBean;
import com.sgcc.electricjournal.pojo.LogContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface LogContentMapper {

    int add(LogContent logContent);

    List<LogContent> findLogContentListByJournalId(@Param("journalId") String journalId);

    List<LogContent> findLogContentListByJournalIdQuery(@Param("journalId") String journalId);

    void deleteAllByJournalId(@Param("journalId")String journalId);

    List<String> findJournalIdList(QueryPageBean queryPageBean);
}
